import 'package:flutter_screenutil/screenutil.dart';
import 'package:flutter/material.dart';
import 'package:heyangkuaidai/DemonStrateModule/Components/NavigationBar.dart';
import 'package:heyangkuaidai/DemonStrateModule/LoanApplyPage.dart';
import 'package:heyangkuaidai/DemonStrateModule/LoanSubscribeResultPage.dart';
class LoanLimitFindPage extends StatefulWidget {
  @override
  _LoanLimitFindPageState createState() => _LoanLimitFindPageState();
}

class _LoanLimitFindPageState extends State<LoanLimitFindPage> {
  @override
  Widget build(BuildContext context) {
    ScreenUtil.init(context, width: 375, height: 667, allowFontScaling: true);
    return Scaffold(
        resizeToAvoidBottomInset: false,
        body:Column(
          children: [
            SizedBox(height: MediaQuery.of(context).padding.top,),
            NavigationBar(false,title: "额度查询",),
          
           Container(
             width: ScreenUtil.screenWidth,
             height: ScreenUtil.screenHeight-MediaQuery.of(context).padding.top-ScreenUtil().setWidth(70),
             child: ListView(
               children: [
                 Column(
                   children: [
                     SizedBox(height: ScreenUtil().setWidth(50),),
                     Stack(
                       children: [
                         Container(
                           child: Image.asset("sources/yy/bar.png"),
                           width: ScreenUtil().setWidth(279),
                           height:ScreenUtil().setWidth(175) ,
                         ),
                         Positioned(
                           top:ScreenUtil().setWidth(30) ,
                           left:ScreenUtil().setWidth(120),
                           child: Container(
                             child: Image.asset("sources/yy/Wallet.png"),
                             height:ScreenUtil().setWidth(32) ,
                             width: ScreenUtil().setWidth(40),
                           ),
                         ),
                         Positioned(
                           top:ScreenUtil().setWidth(90) ,
                           left:ScreenUtil().setWidth(37.5),
                           child:Column(
                             children: [

                               Container(
                                 width: ScreenUtil().setWidth(200),
                                 child: Text("福祥e贷",style: TextStyle(fontSize: ScreenUtil().setSp(16),),textAlign: TextAlign.center,),
                               ),
                               Container(
                                 width: ScreenUtil().setWidth(200),
                                 child: Text("200,000.00",style: TextStyle(fontFamily: "PingFangSC-Semibold", fontSize: ScreenUtil().setSp(30),),textAlign: TextAlign.center,),
                               ),
                               Container(
                                 width: ScreenUtil().setWidth(200),
                                 child: Text("预授信额度",style: TextStyle(fontSize: ScreenUtil().setSp(14),color: Color(0xff9D9D9D)),textAlign: TextAlign.center,),
                               ),
                             ],
                           ),

                         ),
                       ],
                     ),
                     SizedBox(
                       height: ScreenUtil().setWidth(10),
                     ),
                     Container(color:Colors.green,child: Text("实际额度以最终申请额度为准",style: TextStyle(fontSize: ScreenUtil().setSp(13),color: Color(0xffFFFFFF)),textAlign: TextAlign.center),),

                     SizedBox(
                       height: ScreenUtil().setWidth(58),
                     ),
                     Container(
                         width: ScreenUtil().setWidth(262),
                         height: ScreenUtil().setWidth(86),
                         child:Center(
                           child:Text("       您符合我行福祥e贷快贷产品的申请要求，点击“立即申请”前往快贷申请入口，若有其他贷款需求，点击“继续预约”提交贷款意向。           ",style: TextStyle(fontSize: ScreenUtil().setSp(14),color: Color(0xff58595A)),textAlign: TextAlign.left,),
                         )),
                     SizedBox(height:ScreenUtil().setWidth(68),),
                     Column(
                       children: [
                         InkWell(
                           onTap: (){
                             Navigator.push(
                               context,
                               new MaterialPageRoute(
                                 builder: (context) => new LoanApplyPage(),
                               ),
                             );
                           },
                           child: Container(
                               decoration: BoxDecoration(
                                 borderRadius: BorderRadius.circular(4),
                                 color:Color(0xff41A5EE),
                               ),
                               width: ScreenUtil().setWidth(347),
                               height: ScreenUtil().setWidth(44),
                               child:Center(
                                 child: Text("立即申请",style: TextStyle(fontSize: ScreenUtil().setSp(17),color: Colors.white),textAlign: TextAlign.center,),
                               )
                           ) ,
                         ),
                         SizedBox(height: ScreenUtil().setWidth(20),),
                         InkWell(
                           onTap: (){
                             Navigator.push(
                               context,
                               new MaterialPageRoute(
                                 builder: (context) => new LoanSubscribeResultPage(),
                               ),
                             );
                           },
                           child: Container(
                               decoration: BoxDecoration(
                                   borderRadius: BorderRadius.circular(4),
                                   color:Color(0xffFFFFFF),
                                   border: Border.all(
                                       color: Color(0xff41A5EE),
                                       width: 1,
                                       style: BorderStyle.solid
                                   )
                               ),
                               width: ScreenUtil().setWidth(347),
                               height: ScreenUtil().setWidth(44),
                               child:Center(
                                 child: Text("继续预约",style: TextStyle(fontSize: ScreenUtil().setSp(17),color: Color(0xff41A5EE)),textAlign: TextAlign.center,),
                               )
                           ) ,
                         )
                       ],
                     )

                   ],
                 )
               ],
             ),
           ),
           
          ],
        )

    );
  }
}
